package com.zrrd.gmall.order.feign;

import com.zrrd.gmall.common.result.Result;
import com.zrrd.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@FeignClient("service-order")
public interface OrderFeignClient {

    @GetMapping("/api/order/auth/trade")
    public Result<Map<String,Object>> trade();

    @GetMapping("/api/order/inner/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable("orderId")Long orderId);
}
